package com.usian.wemedia.wemedia.controller;

import com.usian.apis.service.wemedia.LoginControllerApi;
import com.usian.model.admin.dtos.AdUserDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmUserDto;
import com.usian.wemedia.wemedia.service.LoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wemedia/login")
@Api(value = "登录管理",tags = "login",description ="登录管理api" )
public class AdUserController implements LoginControllerApi {

    @Autowired
    private LoginService loginService;

    @PostMapping("in")
    @ApiOperation(value = "登录查询",notes = "登录查询")
    @Override
    public ResponseResult login(@RequestBody WmUserDto wmUserDto) {
        return loginService.login(wmUserDto);
    }
}
